import Home from '@/pages/Home'
import Video from '@/pages/Video'
import Video1 from '@/pages/Video/Video1'
import Video2 from '@/pages/Video/Video2'
import Video3 from '@/pages/Video/Video3'
import Login from '@/pages/login'
import Vip from '@/pages/Vip'
import Info from '@/pages/Info'
import VipInfo from '@/pages/Vip/VipInfo'
import VipSelect from '@/pages/Vip/VipSelect'
import VipStory from '@/pages/Vip/VipStory'
import VipWell from '@/pages/Vip/VipWell'
// 首页路由
import Follow from '@/pages/Home/Follow'
import Mend from '@/pages/Home/Mend'
import Chart from '@/pages/Home/Chart'
import Heart from '@/pages/Home/Heart'
import Konw from '@/pages/Home/Konw'
import Science from '@/pages/Home/Science'
import Sousuo from '@/pages/Home/Sousuo'
import Moban from '@/pages/Home/Moban'
import ToLogin from '@/pages/login/toLogin'
import Set from '@/pages/login/set'
import Collect from '@/pages/login/collect'
export const routes = [
    {
        path: '/home', component: Home, meta: { isShow: true },
        children: [
            {
                name: 'follow', path: '/home/follow', component: Follow, meta: { isShow: true }
            },

            {
                path: '/home/mend', component: Mend, meta: { isShow: true }
            },
            {
                path: '/home/heart', component: Heart, meta: { isShow: true }
            },
            {
                path: '/home/chart', component: Chart, meta: { isShow: true }
            },
            {
                path: '/home/konw', component: Konw, meta: { isShow: true }
            },
            {
                path: '/home/science', component: Science, meta: { isShow: true }
            },
            {
                path: '/home/sousuo', component: Sousuo, meta: { isShow: false }
            },
            {
                path: '/home/moban', component: Moban, meta: { isShow: false }
            },
            {
                path:'/home',redirect:'/home/follow'
            }
           
        ] 
    },
    {
        path:'/video',component:Video,meta: { isShow: true },
        children:[
          {
            path: "/Video",
             redirect: "/Video2",
          },
          {
             path:'/video1',
            component:Video1,
            meta: { isShow: true }
          },
          {
            path:'/video2',
           component:Video2,
           meta: { isShow: true }
         },
         {
          path:'/video3',
         component:Video3,
         meta: { isShow: true }
       }
           
        ]
    },
    {
        path: '/vip', component: Vip, meta: { isShow: true },
        children: [
            {
                path: '/Vip/VipInfo', component: VipInfo, meta: { isShow: true }
            },
            {
                path: 'vipselect', component: VipSelect, meta: { isShow: true }
            },
            {
                path: 'vipstory', component: VipStory, meta: { isShow: true }
            },
            {
                path: 'vipwell', component: VipWell, meta: { isShow: true }
            },
            {
                path: '',
                redirect: 'vipselect'
            }
        ]
    },
    {
        path: '/info', component: Info, meta: { isShow: true }
    },
    {
        path: '', redirect: '/home'
    },
    {
        path: '/login', component: Login, meta: { isShow: true },
        children:[
             
        ]
    },
    {
        path: '/login/tologin', component: ToLogin, meta: { isShow: false }
    },
    {
        path: '/login/toSet', component:Set, meta: { isShow: false }
    },
    {
        path: '/login/tocollect', component:Collect, meta: { isShow: false }
    }
   
]